package com.bj.dz.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Util {
	/**
	 * αɾ��
	 * 1��������  0������ְ
	 */
	public final static Integer normal=1;
	public final static Integer unnormal=0;
	
	/**
	 * ����״̬
	 * 1δ�ύ  2�ύ���� 3����ȷ��  4�ѷ���
	 */
	public final static Integer freeIns_unsub=1;
	public final static Integer freeIns_sub=2;
	public final static Integer freeIns_confirm=3;
	public final static Integer freeIns_assign=4;
	
	/**
	 * ����״̬
	 * 1δ�ύ  2�ύ���� 3����ȷ��  4����ȷ��
	 */
	public final static Integer ins_unsub=1;
	public final static Integer ins_sub=2;
	public final static Integer ins_confirm=3;
	public final static Integer ins_FinConfirm=4;
	
	
	/**
	 * ��ʼ����
	 */
	public final static String default_Pwd="123456";
	
	
	/**
	 * �жϲ˵�����Ƿ�һ��,���ұ������Ӽ��˵�(����Ϊ5)
	 */
	public final static Integer menu_length=5;
	
	
	/**
	 * ��ʱ��ת��Ϊָ����ʽ���ַ���(yyyy-MM-dd)
	 */
	public static String dateToStr(Date date){
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
		String strDate=sdf.format(date);
		return strDate;
	}
	
	
	
}
